/**
 * 网站所有幻灯片
 */


if(location.href=="http://mpa.jl.gov.cn/" || location.href=="http://mpa.jl.gov.cn/index.html"){
//首页
	
	
	var part_First = function(){
	//轮播,右下角原点--鼠标点击触发情况

	//轮播：只获取轮播中一个a标签。
	//以文字a标签为主，图片a标签尽量不要，title不稳定


	//文字A标签
	_EsdDynamicTransformationScript.esdTagANum1 = $("#Projector .picplay .picbox:eq(0) a:eq(0)");
	_EsdDynamicTransformationScript.esdTagANum2 = $("#Projector .picplay .picbox:eq(1) a:eq(0)");
	_EsdDynamicTransformationScript.esdTagANum3 = $("#Projector .picplay .picbox:eq(2) a:eq(0)");
	_EsdDynamicTransformationScript.esdTagANum4 = $("#Projector .picplay .picbox:eq(3) a:eq(0)");
	_EsdDynamicTransformationScript.esdTagANum5 = $("#Projector .picplay .picbox:eq(4) a:eq(0)");

	//原点
	_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".page_slide .cyclyImg_pager span:eq(0)");
	_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".page_slide .cyclyImg_pager span:eq(1)");
	_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".page_slide .cyclyImg_pager span:eq(2)");
	_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".page_slide .cyclyImg_pager span:eq(3)");
	_EsdDynamicTransformationScript.esdTagCircleNum5 = $(".page_slide .cyclyImg_pager span:eq(4)");

	//轮播后的标签
	_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".page_slide .cyclyImg_pager").next();

		//轮播前的焦点
//		_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
//			$(this).bind("keydown.keydown_0", function (e) {
//				if(e.shiftKey&&e.keyCode==9){
//
//				}else if (e.keyCode == 9) {
//					_EsdDynamicTransformationScript.esdTagCircleNum1.click();
//					_EsdDynamicTransformationScript.esdTagANum1.focus();
//					return false;
//				}
//			});
//		});
//		_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
//			$(this).unbind("keydown.keydown_0");
//		});
		
		

		//第一块
		_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
			$(this).bind("keydown.keydown_1", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esd0TagNum5Area.css({"display":"block"});
					 $("#nav>li:eq(5) .navContent .clearfix li:last a").focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum2.click();
					_EsdDynamicTransformationScript.esdTagANum2.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
			$(this).unbind("keydown.keydown_1");
		});

		//第二块
		_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
			$(this).bind("keydown.keydown_2", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum1.click();
					_EsdDynamicTransformationScript.esdTagANum1.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum3.click();
					_EsdDynamicTransformationScript.esdTagANum3.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
			$(this).unbind("keydown.keydown_2");
		});
		
		//第三块
		_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
			$(this).bind("keydown.keydown_3", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum2.click();
					_EsdDynamicTransformationScript.esdTagANum2.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum4.click();
					_EsdDynamicTransformationScript.esdTagANum4.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
			$(this).unbind("keydown.keydown_3");
		});
		
		//第四块
		_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
			$(this).bind("keydown.keydown_4", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum3.click();
					_EsdDynamicTransformationScript.esdTagANum3.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum5.click();
					_EsdDynamicTransformationScript.esdTagANum5.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
			$(this).unbind("keydown.keydown_4");
		});
		
		//第五块
		_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
			$(this).bind("keydown.keydown_5", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum4.click();
					_EsdDynamicTransformationScript.esdTagANum4.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
			$(this).unbind("keydown.keydown_5");
		});
		
		//轮播后的焦点，更多
		_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
			$(this).bind("keydown.keydown_6", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum5.click();
					_EsdDynamicTransformationScript.esdTagANum5.focus();
					return false;
				}else if (e.keyCode == 9) {
					$(".conFlour1 .gndt .title1 ul li:eq(0) a").mouseover();
					$(".conFlour1 .gndt .title1 ul li:eq(0) a").focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
			$(this).unbind("keydown.keydown_6");
		});

	}

}





